package org.dreamwork.tools.code.analyzer.core.data;

import org.dreamwork.persistence.*;
import org.dreamwork.tools.code.analyzer.core.data.schema.SystemConfigSchema;

@ISchema (SystemConfigSchema.class)
public class SystemConfig {
	@ISchemaField (name = "_id", id = true)
	private String id;

	@ISchemaField (name = "_value")
	private String value;

	@ISchemaField (name = "_type")
	private String type;

	public String getId () {
		return id;
	}

	public void setId (String id) {
		this.id = id;
	}

	public String getValue () {
		return value;
	}

	public void setValue (String value) {
		this.value = value;
	}

	public String getType () {
		return type;
	}

	public void setType (String type) {
		this.type = type;
	}

	@Override
	public boolean equals (java.lang.Object o) {
		if (this == o) return true;
		if (o == null || getClass () != o.getClass ()) return false;
		SystemConfig that = (SystemConfig) o;
		return id != null && id.equals (that.id);
	}

	@Override
	public int hashCode () {
		return String.valueOf (id).hashCode ();
	}
}